package edu.spec.sys.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by MadFrog on 2017/7/25.
 */
public class InitListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("-----------------------------InitListener calls contextInitialized method!");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("-----------------------------InitListener calls servletContextEvent method!");
    }
}
